package com.dream.dynamic_datasource;

import com.dream.dynamic_datasource.config.properties.CorsProperties;
import com.dream.dynamic_datasource.config.properties.EnvProperties;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableAspectJAutoProxy
@MapperScan(basePackages = {"com.dream.dynamic_datasource.mapper"})
@EnableConfigurationProperties({EnvProperties.class, CorsProperties.class})
public class DynamicDatasourceApplication {

	public static void main(String[] args) {
		SpringApplication.run(DynamicDatasourceApplication.class, args);
	}

}
